import { defineStore } from 'pinia'

const userCounterStore = defineStore('counter', {
  state: () => ({
    counter: 100
  }),
  getters: {
    doubleCounter(state) {
      //  return this.counter*2;
      return state.counter * 2
    }
  },
  actions: {
    changeCounterAction(newV: any) {
      this.counter += newV
    }
  }
})
export default userCounterStore
